<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.3.1"/>
<title>iOS SDK: FlurryAds Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="flurry_logo.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">iOS SDK
   &#160;<span id="projectnumber">7.8.2</span>
   </div>
  </td>
   <td>        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
</td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.3.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('interface_flurry_ads.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Properties</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Class Methods</a> &#124;
<a href="class_flurry_ads-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">FlurryAds Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Provides all available methods for displaying ads.  
 <a href="interface_flurry_ads.html#details">More...</a></p>

<p><code>#import &lt;<a class="el" href="_flurry_ads_8h_source.html">FlurryAds.h</a>&gt;</code></p>

<p>Inherits NSObject.</p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Class Methods</h2></td></tr>
<tr class="memitem:a129c00cd7ed01a494a476e9d29f73e9f"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">+ <a class="el" href="interface_flurry_ads.html#a129c00cd7ed01a494a476e9d29f73e9f">fetchAdForSpace:frame:size:</a></td></tr>
<tr class="memdesc:a129c00cd7ed01a494a476e9d29f73e9f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieves an ad for the given <code>space</code>.  <a href="#a129c00cd7ed01a494a476e9d29f73e9f">More...</a><br/></td></tr>
<tr class="separator:a129c00cd7ed01a494a476e9d29f73e9f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8fc0c37b50151deb8cb326728210708b"><td class="memItemLeft" align="right" valign="top">(BOOL)&#160;</td><td class="memItemRight" valign="bottom">+ <a class="el" href="interface_flurry_ads.html#a8fc0c37b50151deb8cb326728210708b">adReadyForSpace:</a></td></tr>
<tr class="memdesc:a8fc0c37b50151deb8cb326728210708b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns if an ad is currently ready to display for a given <code>space</code>.  <a href="#a8fc0c37b50151deb8cb326728210708b">More...</a><br/></td></tr>
<tr class="separator:a8fc0c37b50151deb8cb326728210708b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac2677a349b495ef1f87e59f0e5e7caf5"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">+ <a class="el" href="interface_flurry_ads.html#ac2677a349b495ef1f87e59f0e5e7caf5">displayAdForSpace:onView:viewControllerForPresentation:</a></td></tr>
<tr class="memdesc:ac2677a349b495ef1f87e59f0e5e7caf5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Display an ad for the given <code>space</code>.  <a href="#ac2677a349b495ef1f87e59f0e5e7caf5">More...</a><br/></td></tr>
<tr class="separator:ac2677a349b495ef1f87e59f0e5e7caf5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae61be44f5308297f7021fef7aa702934"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">+ <a class="el" href="interface_flurry_ads.html#ae61be44f5308297f7021fef7aa702934">displayAdForSpace:modallyForViewController:</a></td></tr>
<tr class="memdesc:ae61be44f5308297f7021fef7aa702934"><td class="mdescLeft">&#160;</td><td class="mdescRight">[Deprecated] Display an ad for the given interstitial <code>space</code>.  <a href="#ae61be44f5308297f7021fef7aa702934">More...</a><br/></td></tr>
<tr class="separator:ae61be44f5308297f7021fef7aa702934"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3c2b35d7486d5cd0e77ea266395e26ee"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">+ <a class="el" href="interface_flurry_ads.html#a3c2b35d7486d5cd0e77ea266395e26ee">fetchAndDisplayAdForSpace:view:viewController:size:</a></td></tr>
<tr class="memdesc:a3c2b35d7486d5cd0e77ea266395e26ee"><td class="mdescLeft">&#160;</td><td class="mdescRight">Fetch and Display an ad for the given <code>space</code>.  <a href="#a3c2b35d7486d5cd0e77ea266395e26ee">More...</a><br/></td></tr>
<tr class="separator:a3c2b35d7486d5cd0e77ea266395e26ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae3ccfb6e56f520158ebf5ace6322a123"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">+ <a class="el" href="interface_flurry_ads.html#ae3ccfb6e56f520158ebf5ace6322a123">removeAdFromSpace:</a></td></tr>
<tr class="memdesc:ae3ccfb6e56f520158ebf5ace6322a123"><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes an ad for the given <code>space</code>.  <a href="#ae3ccfb6e56f520158ebf5ace6322a123">More...</a><br/></td></tr>
<tr class="separator:ae3ccfb6e56f520158ebf5ace6322a123"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a629c9038b83ff44baf0ad8223c89d218"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">+ <a class="el" href="interface_flurry_ads.html#a629c9038b83ff44baf0ad8223c89d218">initialize:</a></td></tr>
<tr class="memdesc:a629c9038b83ff44baf0ad8223c89d218"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes the ad serving system.  <a href="#a629c9038b83ff44baf0ad8223c89d218">More...</a><br/></td></tr>
<tr class="separator:a629c9038b83ff44baf0ad8223c89d218"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1e6d7b199a626566cffb2cbd93fd102d"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">+ <a class="el" href="interface_flurry_ads.html#a1e6d7b199a626566cffb2cbd93fd102d">setAdDelegate:</a></td></tr>
<tr class="memdesc:a1e6d7b199a626566cffb2cbd93fd102d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the object to receive various delegate methods.  <a href="#a1e6d7b199a626566cffb2cbd93fd102d">More...</a><br/></td></tr>
<tr class="separator:a1e6d7b199a626566cffb2cbd93fd102d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5eefaeaa3c34f3359d2c4bc0a44c194a"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">+ <a class="el" href="interface_flurry_ads.html#a5eefaeaa3c34f3359d2c4bc0a44c194a">enableTestAds:</a></td></tr>
<tr class="memdesc:a5eefaeaa3c34f3359d2c4bc0a44c194a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Informs server to send test ads.  <a href="#a5eefaeaa3c34f3359d2c4bc0a44c194a">More...</a><br/></td></tr>
<tr class="separator:a5eefaeaa3c34f3359d2c4bc0a44c194a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a994fb5c9b5ab979bfc2137507b1db8ca"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">+ <a class="el" href="interface_flurry_ads.html#a994fb5c9b5ab979bfc2137507b1db8ca">setUserCookies:</a></td></tr>
<tr class="memdesc:a994fb5c9b5ab979bfc2137507b1db8ca"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets a dictionary of key/value pairs, which will be transmitted to <a class="el" href="interface_flurry.html" title="Provides all available methods for defining and reporting Analytics from use of your app...">Flurry</a> servers when a user clicks on an ad.  <a href="#a994fb5c9b5ab979bfc2137507b1db8ca">More...</a><br/></td></tr>
<tr class="separator:a994fb5c9b5ab979bfc2137507b1db8ca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3eac608196df0449cf7527857038b3e4"><td class="memItemLeft" align="right" valign="top">((deprecated)&#160;</td><td class="memItemRight" valign="bottom">+ <a class="el" href="interface_flurry_ads.html#a3eac608196df0449cf7527857038b3e4">__attribute__</a></td></tr>
<tr class="memdesc:a3eac608196df0449cf7527857038b3e4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes a previously set dictionary of key/value pairs.  <a href="#a3eac608196df0449cf7527857038b3e4">More...</a><br/></td></tr>
<tr class="separator:a3eac608196df0449cf7527857038b3e4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa191fe99171a1e3dc47a7fba2148f3e2"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">+ <a class="el" href="interface_flurry_ads.html#aa191fe99171a1e3dc47a7fba2148f3e2">setKeywordsForTargeting:</a></td></tr>
<tr class="memdesc:aa191fe99171a1e3dc47a7fba2148f3e2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets a dictionary of key/value pairs, which will be transmitted to <a class="el" href="interface_flurry.html" title="Provides all available methods for defining and reporting Analytics from use of your app...">Flurry</a> servers when an ad is requested.  <a href="#aa191fe99171a1e3dc47a7fba2148f3e2">More...</a><br/></td></tr>
<tr class="separator:aa191fe99171a1e3dc47a7fba2148f3e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3eac608196df0449cf7527857038b3e4"><td class="memItemLeft" align="right" valign="top">((deprecated)&#160;</td><td class="memItemRight" valign="bottom">+ <a class="el" href="interface_flurry_ads.html#a3eac608196df0449cf7527857038b3e4">__attribute__</a></td></tr>
<tr class="memdesc:a3eac608196df0449cf7527857038b3e4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes a previously set dictionary of key/value pairs.  <a href="#a3eac608196df0449cf7527857038b3e4">More...</a><br/></td></tr>
<tr class="separator:a3eac608196df0449cf7527857038b3e4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3579fd8b73fa7f43cd168f1006732bb1"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">+ <a class="el" href="interface_flurry_ads.html#a3579fd8b73fa7f43cd168f1006732bb1">addCustomAdNetwork:withProperties:</a></td></tr>
<tr class="memdesc:a3579fd8b73fa7f43cd168f1006732bb1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Method to add a custom ad network to be served through the standard <a class="el" href="interface_flurry.html" title="Provides all available methods for defining and reporting Analytics from use of your app...">Flurry</a> ad system.  <a href="#a3579fd8b73fa7f43cd168f1006732bb1">More...</a><br/></td></tr>
<tr class="separator:a3579fd8b73fa7f43cd168f1006732bb1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Provides all available methods for displaying ads. </p>
<p>Set of methods that allow publishers to configure, target, and deliver ads to their customers.</p>
<dl class="section note"><dt>Note</dt><dd>This class depends on <a class="el" href="_flurry_8h_source.html">Flurry.h</a>. For information on how to use <a class="el" href="interface_flurry.html" title="Provides all available methods for defining and reporting Analytics from use of your app...">Flurry</a>'s Ads SDK to attract high-quality users and monetize your user base see <a href="https://developer.yahoo.com/flurry/docs/howtos">Support Center - Publishers</a>.</dd></dl>
<dl class="section author"><dt>Author</dt><dd>2009 - 2013 <a class="el" href="interface_flurry.html" title="Provides all available methods for defining and reporting Analytics from use of your app...">Flurry</a>, Inc. All Rights Reserved. </dd></dl>
<dl class="section version"><dt>Version</dt><dd>4.3.0 </dd></dl>

<p>Definition at line <a class="el" href="_flurry_ads_8h_source.html#l00033">33</a> of file <a class="el" href="_flurry_ads_8h_source.html">FlurryAds.h</a>.</p>
</div><h2 class="groupheader">Method Documentation</h2>
<a class="anchor" id="a3eac608196df0449cf7527857038b3e4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">+ ((deprecated) __attribute__ </td>
          <td></td>
          <td class="paramname"></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Removes a previously set dictionary of key/value pairs. </p>
<dl class="section since"><dt>Since</dt><dd>4.0.0 </dd></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000017">Deprecated:</a></b></dt><dd>7.8.0 - please use the Object APIs</dd></dl>
<p>This method removes information from the one UserCookie object.</p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="interface_flurry_ads.html#a994fb5c9b5ab979bfc2137507b1db8ca" title="Sets a dictionary of key/value pairs, which will be transmitted to Flurry servers when a user clicks ...">+ setUserCookies:</a> for details on setting user cookies. </dd></dl>

</div>
</div>
<a class="anchor" id="a3eac608196df0449cf7527857038b3e4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">+ ((deprecated) __attribute__ </td>
          <td></td>
          <td class="paramname"></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Removes a previously set dictionary of key/value pairs. </p>
<dl class="section since"><dt>Since</dt><dd>4.0.0 </dd></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000019">Deprecated:</a></b></dt><dd>7.8.0 - please use the Object APIs</dd></dl>
<p>This method removes information from the one keywords object.</p>
<dl class="section see"><dt>See Also</dt><dd>#setKeywords: for details on setting keywords. </dd></dl>

</div>
</div>
<a class="anchor" id="a3579fd8b73fa7f43cd168f1006732bb1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">+ (void) addCustomAdNetwork: </td>
          <td></td>
          <td class="paramtype">(Class&lt; FlurryCustomAdNetwork &gt;)&#160;</td>
          <td class="paramname"><em>adNetworkClass</em></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Method to add a custom ad network to be served through the standard <a class="el" href="interface_flurry.html" title="Provides all available methods for defining and reporting Analytics from use of your app...">Flurry</a> ad system. </p>
<dl class="section since"><dt>Since</dt><dd>4.0.0 </dd></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000020">Deprecated:</a></b></dt><dd>7.8.0 - please use the Object APIs</dd></dl>
<p>This method adds a network with the necessary publisher supplied properties to the <a class="el" href="interface_flurry.html" title="Provides all available methods for defining and reporting Analytics from use of your app...">Flurry</a> sdk.</p>
<dl class="section see"><dt>See Also</dt><dd><code>FlurryCustomAdNetwork</code> and <code>FlurryCustomAdNetworkProperties</code> for details. </dd></dl>

</div>
</div>
<a class="anchor" id="a8fc0c37b50151deb8cb326728210708b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">+ (BOOL) adReadyForSpace: </td>
          <td></td>
          <td class="paramname"></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns if an ad is currently ready to display for a given <code>space</code>. </p>
<dl class="section since"><dt>Since</dt><dd>4.1.0 </dd></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000008">Deprecated:</a></b></dt><dd>7.8.0 - please use the Object APIs</dd></dl>
<p>This method will verify if there is an ad is currently available for this user. If an ad is not available, you may call #fetchAdForSpace:view:size: to load a new ad.</p>
<dl class="section note"><dt>Note</dt><dd>If this method returns YES, an ad will be available when you attempt to display an ad. However, it is still advisable to listen to the delegate FlurryAdsDelegate::spaceDidFailToRender:. <br/>
 The <code>space</code> simply represents the placement of the ad in your app and should be unique for each placement. For example, if you are displaying a full screen ad on your splash screen and after level completeion, you may have the following spaces <code>"SPLASH_AD" and @c @"LEVEL_AD"</code>.</dd></dl>
<dl class="section see"><dt>See Also</dt><dd>#fetchAdForSpace:view:size: for details on retrieving an ad.<br/>
 #displayAdForSpace: for details on displaying the available ad.</dd></dl>
<div class="fragment"><div class="line">   - (void)showButtonForAd:(NSString *)placement </div>
<div class="line">{</div>
<div class="line"><span class="comment">// Placement may be SPLASH_AD as noted above</span></div>
<div class="line"><span class="keywordflow">if</span>([<a class="code" href="interface_flurry_ads.html" title="Provides all available methods for displaying ads.">FlurryAds</a> adReadyForSpace:placement]) </div>
<div class="line">{</div>
<div class="line"><span class="comment">// Show button that ads are available.</span></div>
<div class="line">}</div>
<div class="line">}</div>
</div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">space</td><td>The placement of an ad in your app, where placement may be splash screen for SPLASH_AD.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>YES/NO to indicate if an ad is ready to be displayed. </dd></dl>

</div>
</div>
<a class="anchor" id="ae61be44f5308297f7021fef7aa702934"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">+ (void) displayAdForSpace: </td>
          <td></td>
          <td class="paramtype">(NSString *)&#160;</td>
          <td class="paramname"><em>space</em></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>[Deprecated] Display an ad for the given interstitial <code>space</code>. </p>
<dl class="section since"><dt>Since</dt><dd>4.2.2 </dd></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000010">Deprecated:</a></b></dt><dd>5.4.0</dd></dl>
<p>This method will display an interstitial ad if one is ready for display on the device for specified UIViewController instance [Deprecated] <a class="el" href="interface_flurry_ads.html#ac2677a349b495ef1f87e59f0e5e7caf5" title="Display an ad for the given space.">displayAdForSpace:onView:viewControllerForPresentation:</a> is the preferred routine for showing interstitials.</p>
<dl class="section note"><dt>Note</dt><dd>The <code>space</code> simply represents the placement of the ad in your app and should be unique for each placement. Only one ad will show at a time for any given ad space. For example, if you are displaying a full screen ad on your splash screen and after level completeion, you may have the following spaces <code>"SPLASH_AD" and @c @"LEVEL_AD"</code>.</dd></dl>
<dl class="section see"><dt>See Also</dt><dd>#fetchAdForSpace:view:size: for details on retrieving an ad.<br/>
 <a class="el" href="interface_flurry_ads.html#a8fc0c37b50151deb8cb326728210708b" title="Returns if an ad is currently ready to display for a given space.">+ adReadyForSpace:</a> for details on verifying is an ad is ready to be displayed. <br/>
 <a class="el" href="interface_flurry_ads.html#ae3ccfb6e56f520158ebf5ace6322a123" title="Removes an ad for the given space.">+ removeAdFromSpace:</a> for details on manually removing an ad from a view. <br/>
 <a class="el" href="protocol_flurry_ad_delegate-p.html#ae8a35856ece8780b0f241ecedf1a4047" title="[Deprecated] This method is deprecated. -[spaceShouldDisplay:interstitial:] should be used...">- spaceShouldDisplay:forType: (FlurryAdDelegate-p)</a> for details on controlling whether an ad will display immediately before it is set to be rendered to the user. <a class="el" href="protocol_flurry_ad_delegate-p.html#af3d0fd7e16ead501f8c8f93c74651a81" title="Invoked when an ad fails to render.">- spaceDidFailToRender:error: (FlurryAdDelegate-p)</a> for details on notification of error in rendering an ad for this request.</dd></dl>
<div class="fragment"><div class="line">  in UIViewController based <span class="keyword">class</span>:</div>
<div class="line">   - (void)showFullscreenAd:(NSString *)placement </div>
<div class="line">{</div>
<div class="line"><span class="comment">// Placement may be SPLASH_AD as noted above</span></div>
<div class="line"><span class="keywordflow">if</span>([<a class="code" href="interface_flurry_ads.html" title="Provides all available methods for displaying ads.">FlurryAds</a> adReadyForSpace:placement])</div>
<div class="line">{</div>
<div class="line">   [<a class="code" href="interface_flurry_ads.html" title="Provides all available methods for displaying ads.">FlurryAds</a> displayAdForSpace:placement modallyForViewController:<span class="keyword">self</span>];</div>
<div class="line">}</div>
<div class="line">}</div>
</div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">space</td><td>The placement of an ad in your app, where placement may </td></tr>
    <tr><td class="paramname">viewController</td><td>The viewController to show the fullscreen ad modally. Note this method should not be used for banners. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ac2677a349b495ef1f87e59f0e5e7caf5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">+ (void) displayAdForSpace: </td>
          <td></td>
          <td class="paramtype">(NSString *)&#160;</td>
          <td class="paramname"><em>space</em></td>
        </tr>
        <tr>
          <td class="paramkey">onView:</td>
          <td></td>
          <td class="paramtype">(UIView *)&#160;</td>
          <td class="paramname"><em>view</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Display an ad for the given <code>space</code>. </p>
<dl class="section since"><dt>Since</dt><dd>4.1.0  5.4.0 </dd></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000009">Deprecated:</a></b></dt><dd>7.8.0 - please use the Object APIs</dd></dl>
<p>This method will display an ad if one is ready for display on the device.</p>
<dl class="section note"><dt>Note</dt><dd>The <code>space</code> simply represents the placement of the ad in your app and should be unique for each placement. Only one ad will show at a time for any given ad space. For example, if you are displaying a full screen ad on your splash screen and after level completeion, you may have the following spaces <code>"SPLASH_AD" and @c @"LEVEL_AD"</code>.</dd></dl>
<dl class="section see"><dt>See Also</dt><dd>#fetchAdForSpace:view:size: for details on retrieving an ad.<br/>
 <a class="el" href="interface_flurry_ads.html#a8fc0c37b50151deb8cb326728210708b" title="Returns if an ad is currently ready to display for a given space.">+ adReadyForSpace:</a> for details on verifying is an ad is ready to be displayed. <br/>
 <a class="el" href="interface_flurry_ads.html#ae3ccfb6e56f520158ebf5ace6322a123" title="Removes an ad for the given space.">+ removeAdFromSpace:</a> for details on manually removing an ad from a view. <br/>
 <a class="el" href="protocol_flurry_ad_delegate-p.html#ae8a35856ece8780b0f241ecedf1a4047" title="[Deprecated] This method is deprecated. -[spaceShouldDisplay:interstitial:] should be used...">- spaceShouldDisplay:forType: (FlurryAdDelegate-p)</a> for details on controlling whether an ad will display immediately before it is set to be rendered to the user. <a class="el" href="protocol_flurry_ad_delegate-p.html#af3d0fd7e16ead501f8c8f93c74651a81" title="Invoked when an ad fails to render.">- spaceDidFailToRender:error: (FlurryAdDelegate-p)</a> for details on notification of error in rendering an ad for this request.</dd></dl>
<div class="fragment"><div class="line">- (void)showFullscreenAd:(NSString *)placement</div>
<div class="line">{</div>
<div class="line">    <span class="comment">// Placement may be SPLASH_AD as noted above</span></div>
<div class="line">    <span class="keywordflow">if</span>([<a class="code" href="interface_flurry_ads.html" title="Provides all available methods for displaying ads.">FlurryAds</a> adReadyForSpace:placement])</div>
<div class="line">    {</div>
<div class="line">        [<a class="code" href="interface_flurry_ads.html" title="Provides all available methods for displaying ads.">FlurryAds</a> displayAdForSpace:placement onView:<span class="keyword">self</span>.view viewControllerForPresentation:<span class="keyword">self</span>];</div>
<div class="line">    }</div>
<div class="line">}</div>
</div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">space</td><td>The placement of an ad in your app, where placement may </td></tr>
    <tr><td class="paramname">view</td><td>The view to place the ad. The view frame should be identical to the view frame passed in #fetchAdForSpace:frame:size. Note view is not used for interstitials. </td></tr>
    <tr><td class="paramname">viewControllerForPresentation</td><td>The viewController to show the fullscreen ad modally. be splash screen for SPLASH_AD. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a5eefaeaa3c34f3359d2c4bc0a44c194a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">+ (void) enableTestAds: </td>
          <td></td>
          <td class="paramname"></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Informs server to send test ads. </p>
<dl class="section since"><dt>Since</dt><dd>4.0 </dd></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000015">Deprecated:</a></b></dt><dd>7.8.0 - please use the Object APIs</dd></dl>
<p>This method allows you to request test ads from the server. These ads do not generate revenue so it is CRITICAL this call is removed prior to app submission.</p>
<div class="fragment"><div class="line">- (void)applicationDidFinishLaunching:(UIApplication *)application </div>
<div class="line">{</div>
<div class="line">    <span class="comment">// Optional Flurry startup methods</span></div>
<div class="line">    [<a class="code" href="interface_flurry.html" title="Provides all available methods for defining and reporting Analytics from use of your app...">Flurry</a> startSession:<span class="stringliteral">@&quot;YOUR_API_KEY&quot;</span>];</div>
<div class="line">    [<a class="code" href="interface_flurry_ads.html" title="Provides all available methods for displaying ads.">FlurryAds</a> enableTestAds:YES];</div>
<div class="line"></div>
<div class="line">    <span class="comment">// ....</span></div>
<div class="line">}</div>
</div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">enable</td><td>YES to receive test ads to the device. Not including this method is equivalent to passing NO. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a129c00cd7ed01a494a476e9d29f73e9f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">+ (void) fetchAdForSpace: </td>
          <td></td>
          <td class="paramtype">(NSString *)&#160;</td>
          <td class="paramname"><em>space</em></td>
        </tr>
        <tr>
          <td class="paramkey">frame:</td>
          <td></td>
          <td class="paramtype">(CGRect)&#160;</td>
          <td class="paramname"><em>frame</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Retrieves an ad for the given <code>space</code>. </p>
<dl class="section since"><dt>Since</dt><dd>4.1.0 </dd></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000007">Deprecated:</a></b></dt><dd>7.8.0 - please use the Object APIs</dd></dl>
<p>This method will attempt to retrieve ads for the given space from the <a class="el" href="interface_flurry.html" title="Provides all available methods for defining and reporting Analytics from use of your app...">Flurry</a> server.</p>
<dl class="section note"><dt>Note</dt><dd>The <code>space</code> simply represents the placement of the ad in your app and should be unique for each placement. For example, if you are displaying a full screen ad on your splash screen and after level completeion, you may have the following spaces <code>"SPLASH_AD" and @c @"LEVEL_AD"</code>.</dd></dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="interface_flurry_ads.html#ae3ccfb6e56f520158ebf5ace6322a123" title="Removes an ad for the given space.">+ removeAdFromSpace:</a> for details on manually removing an ad from a view. <br/>
 <a class="el" href="protocol_flurry_ad_delegate-p.html#ab3aab75fc98595df6dfff08cb4762c76" title="Invoked when an ad is received for the specified adSpace.">- spaceDidReceiveAd: (FlurryAdDelegate-p)</a> for details on the notification of ads being received. <a class="el" href="protocol_flurry_ad_delegate-p.html#a5106469035dab1103e0f8e7815d8d23e" title="Invoked when an ad can not be retrieved for the specified adSpace.">- spaceDidFailToReceiveAd:error: (FlurryAdDelegate-p)</a> for details on notification of failure to receive ads from this request. #displayAdForSpace: for details on displaying an available ad.</dd></dl>
<div class="fragment"><div class="line">   - (void)fetchAd:(NSString *)placement </div>
<div class="line">{</div>
<div class="line">   <span class="comment">// Placement may be SPLASH_AD as noted above</span></div>
<div class="line">   [<a class="code" href="interface_flurry_ads.html" title="Provides all available methods for displaying ads.">FlurryAds</a> fetchAdForSpace:placement view:<span class="keyword">self</span>.view.frame size:FULLSCREEN]; </div>
<div class="line">}</div>
<div class="line"></div>
<div class="line">   <span class="comment">// Show whenever delegate is invoked</span></div>
<div class="line">- (void) spaceDidReceiveAd:(NSString *)adSpace {</div>
<div class="line">   <span class="comment">// Received Ad</span></div>
<div class="line">   [<a class="code" href="interface_flurry_ads.html" title="Provides all available methods for displaying ads.">FlurryAds</a> displayAdForSpace:adSpace];</div>
<div class="line">}</div>
<div class="line">   <span class="comment">// Alternatively, try to display at a certain point in the app</span></div>
<div class="line">- (void) levelComplete {</div>
<div class="line">   <span class="keywordflow">if</span>([<a class="code" href="interface_flurry_ads.html" title="Provides all available methods for displaying ads.">FlurryAds</a> adReadyForSpace:adSpace]) {</div>
<div class="line">       [<a class="code" href="interface_flurry_ads.html" title="Provides all available methods for displaying ads.">FlurryAds</a> displayAdForSpace:adSpace];</div>
<div class="line">   }</div>
<div class="line">}</div>
</div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">space</td><td>The placement of an ad in your app, where placement may be splash screen for SPLASH_AD. </td></tr>
    <tr><td class="paramname">frame</td><td>The frame of the view that will be used for the ad container. </td></tr>
    <tr><td class="paramname">size</td><td>The default size of an ad space. This can be overriden on the server. See <code>FlurryAdSize</code> in the <a class="el" href="_flurry_ads_8h_source.html">FlurryAds.h</a> file for allowable values. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a3c2b35d7486d5cd0e77ea266395e26ee"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">+ (void) fetchAndDisplayAdForSpace: </td>
          <td></td>
          <td class="paramtype">(NSString *)&#160;</td>
          <td class="paramname"><em>space</em></td>
        </tr>
        <tr>
          <td class="paramkey">view:</td>
          <td></td>
          <td class="paramtype">(UIView *)&#160;</td>
          <td class="paramname"><em>viewContainer</em></td>
        </tr>
        <tr>
          <td class="paramkey">viewController:</td>
          <td></td>
          <td class="paramtype">(UIViewController *)&#160;</td>
          <td class="paramname"><em>viewControllerForPresentation</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Fetch and Display an ad for the given <code>space</code>. </p>
<dl class="section since"><dt>Since</dt><dd>4.0.0  5.4.0 </dd></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000011">Deprecated:</a></b></dt><dd>7.8.0 - please use the Object APIs</dd></dl>
<p>This method will display an ad if one is available from the <a class="el" href="interface_flurry.html" title="Provides all available methods for defining and reporting Analytics from use of your app...">Flurry</a> server for this user.</p>
<dl class="section note"><dt>Note</dt><dd>If this method returns YES, an ad is available for the space within <code>timeout</code>. <br/>
 This is a blocking method that allows you to change the user experience based on availability of an ad. If you would like to display an ad asynchronously, just set timeout to 0. This is useful in the case of banners for instance where the user should not wait for its display. If you are loading async with timeout set to 0, ignore the return value of this method and rely exclusively on the relevant delegate methods listed below<br/>
 The <code>space</code> simply represents the placement of the ad in your app and should be unique for each placement. Only one ad will show at a time for any given ad space. For example, if you are displaying a full screen ad on your splash screen and after level completeion, you may have the following spaces <code>"SPLASH_AD" and @c @"LEVEL_AD"</code>.</dd></dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="interface_flurry_ads.html#a8fc0c37b50151deb8cb326728210708b" title="Returns if an ad is currently ready to display for a given space.">+ adReadyForSpace:</a> for details on verifying is an ad is ready to be displayed. <br/>
 <a class="el" href="interface_flurry_ads.html#ae3ccfb6e56f520158ebf5ace6322a123" title="Removes an ad for the given space.">+ removeAdFromSpace:</a> for details on manually removing an ad from a view. <br/>
 <a class="el" href="protocol_flurry_ad_delegate-p.html#ab3aab75fc98595df6dfff08cb4762c76" title="Invoked when an ad is received for the specified adSpace.">- spaceDidReceiveAd: (FlurryAdDelegate-p)</a> for details on the notification of ads being received. <a class="el" href="protocol_flurry_ad_delegate-p.html#a5106469035dab1103e0f8e7815d8d23e" title="Invoked when an ad can not be retrieved for the specified adSpace.">- spaceDidFailToReceiveAd:error: (FlurryAdDelegate-p)</a> for details on notification of failure to receive ads from this request. <a class="el" href="protocol_flurry_ad_delegate-p.html#ae8a35856ece8780b0f241ecedf1a4047" title="[Deprecated] This method is deprecated. -[spaceShouldDisplay:interstitial:] should be used...">- spaceShouldDisplay:forType: (FlurryAdDelegate-p)</a> for details on controlling whether an ad will display immediately before it is set to be rendered to the user. <a class="el" href="protocol_flurry_ad_delegate-p.html#af3d0fd7e16ead501f8c8f93c74651a81" title="Invoked when an ad fails to render.">- spaceDidFailToRender:error: (FlurryAdDelegate-p)</a> for details on notification of error in rendering an ad for this request.</dd></dl>
<div class="fragment"><div class="line">   - (void)showFullscreenAd:(NSString *)placement</div>
<div class="line">{</div>
<div class="line"><span class="comment">// Placement may be SPLASH_AD as noted above</span></div>
<div class="line">[<a class="code" href="interface_flurry_ads.html" title="Provides all available methods for displaying ads.">FlurryAds</a> fetchAndDisplayAdForSpace:placement view:<span class="keyword">self</span>.view viewController:<span class="keyword">self</span> size:FULLSCREEN timeout:3000];</div>
<div class="line"></div>
<div class="line">}</div>
<div class="line"></div>
<div class="line">- (void)viewWillAppear:(BOOL)animated</div>
<div class="line">{</div>
<div class="line"><span class="comment">// Show a banner whenever this view appears</span></div>
<div class="line"><span class="comment">// Display banner ad completely asyncrhonously by providing timeout == 0</span></div>
<div class="line">[<a class="code" href="interface_flurry_ads.html" title="Provides all available methods for displaying ads.">FlurryAds</a> fetchAndDisplayAdForSpace:<span class="stringliteral">@&quot;VIEW_XYZ_BANNER_AD&quot;</span> view:<span class="keyword">self</span>.view size:BANNER_BOTTOM timeout:0];</div>
<div class="line">}</div>
</div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">space</td><td>The placement of an ad in your app, where placement may be splash screen for SPLASH_AD. </td></tr>
    <tr><td class="paramname">view</td><td>The UIView in your app that the ad will be placed as a subview. Note: for fullscreen ads, this view is not used as a container, but the size of the view may still be used for determining what types of ads will fit in this space. </td></tr>
    <tr><td class="paramname">size</td><td>The default size of an ad space. This can be overriden on the server. See <code>FlurryAdSize</code> in the <a class="el" href="_flurry_ads_8h_source.html">FlurryAds.h</a> file for allowable values. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a629c9038b83ff44baf0ad8223c89d218"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">+ (void) initialize: </td>
          <td></td>
          <td class="paramname"></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initializes the ad serving system. </p>
<dl class="section since"><dt>Since</dt><dd>4.0 </dd></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000013">Deprecated:</a></b></dt><dd>7.8.0 - please use the Object APIs</dd></dl>
<p>This method initializes the ad serving system and can be used to pre-cache ads from the server (this is done when ad spaces are configured on the server).</p>
<dl class="section note"><dt>Note</dt><dd>This method must be called sometime after <a class="el" href="interface_flurry.html#aeadfa23545c392ffd46db448b6a95809" title="Start a Flurry session for the project denoted by apiKey.">startSession: (Flurry)</a>.</dd></dl>
<div class="fragment"><div class="line">- (void)applicationDidFinishLaunching:(UIApplication *)application </div>
<div class="line">{</div>
<div class="line">    <span class="comment">// Optional Flurry startup methods</span></div>
<div class="line">    [<a class="code" href="interface_flurry.html" title="Provides all available methods for defining and reporting Analytics from use of your app...">Flurry</a> startSession:<span class="stringliteral">@&quot;YOUR_API_KEY&quot;</span>];</div>
<div class="line">    [<a class="code" href="interface_flurry_ads.html" title="Provides all available methods for displaying ads.">FlurryAds</a> setAdDelegate:<span class="keyword">self</span>];</div>
<div class="line">    [<a class="code" href="interface_flurry_ads.html" title="Provides all available methods for displaying ads.">FlurryAds</a> initialize:myWindow.rootViewController];</div>
<div class="line"></div>
<div class="line">    <span class="comment">// ....</span></div>
<div class="line">}</div>
</div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">rvc</td><td>The primary root view controller of your app. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ae3ccfb6e56f520158ebf5ace6322a123"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">+ (void) removeAdFromSpace: </td>
          <td></td>
          <td class="paramname"></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Removes an ad for the given <code>space</code>. </p>
<dl class="section since"><dt>Since</dt><dd>4.0.0 </dd></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000012">Deprecated:</a></b></dt><dd>7.8.0 - please use the Object APIs</dd></dl>
<p>This method will remove an ad if one is currently displaying.</p>
<dl class="section note"><dt>Note</dt><dd>The <code>space</code> simply represents the placement of the ad in your app and should be unique for each placement. Only one ad will show at a time for any given ad space.</dd></dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="interface_flurry_ads.html#a8fc0c37b50151deb8cb326728210708b" title="Returns if an ad is currently ready to display for a given space.">+ adReadyForSpace:</a> for details on displaying an available ad. <br/>
 <a class="el" href="interface_flurry_ads.html#ae3ccfb6e56f520158ebf5ace6322a123" title="Removes an ad for the given space.">+ removeAdFromSpace:</a> for details on manually removing an ad from a view. <br/>
 <a class="el" href="protocol_flurry_ad_delegate-p.html#ae8a35856ece8780b0f241ecedf1a4047" title="[Deprecated] This method is deprecated. -[spaceShouldDisplay:interstitial:] should be used...">- spaceShouldDisplay:forType: (FlurryAdDelegate-p)</a> for details on controlling whether an ad will display immediately before it is set to be rendered to the user.</dd></dl>
<div class="fragment"><div class="line">- (void)viewDidUnload </div>
<div class="line">{</div>
<div class="line">    <span class="comment">// Remove a banner whenever this view dissapears</span></div>
<div class="line">    [<a class="code" href="interface_flurry_ads.html" title="Provides all available methods for displaying ads.">FlurryAds</a> removeAdFromSpace:<span class="stringliteral">@&quot;VIEW_XYZ_BANNER_AD&quot;</span>];</div>
<div class="line">}</div>
</div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">space</td><td>The placement of an ad in your app, where placement may be splash screen for SPLASH_AD. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a1e6d7b199a626566cffb2cbd93fd102d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">+ (void) setAdDelegate: </td>
          <td></td>
          <td class="paramname"></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the object to receive various delegate methods. </p>
<dl class="section since"><dt>Since</dt><dd>4.0 </dd></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000014">Deprecated:</a></b></dt><dd>7.8.0 - please use the Object APIs</dd></dl>
<p>This method allows you to register an object that will receive notifications at different phases of ad serving.</p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="_flurry_ad_delegate_8h_source.html">FlurryAdDelegate.h</a> for details on delegates available.</dd></dl>
<div class="fragment"><div class="line">- (void)applicationDidFinishLaunching:(UIApplication *)application </div>
<div class="line">{</div>
<div class="line">    <span class="comment">// Optional Flurry startup methods</span></div>
<div class="line">    [<a class="code" href="interface_flurry.html" title="Provides all available methods for defining and reporting Analytics from use of your app...">Flurry</a> startSession:<span class="stringliteral">@&quot;YOUR_API_KEY&quot;</span>];</div>
<div class="line">    [<a class="code" href="interface_flurry_ads.html" title="Provides all available methods for displaying ads.">FlurryAds</a> setAdDelegate:<span class="keyword">self</span>];</div>
<div class="line"></div>
<div class="line">    <span class="comment">// ....</span></div>
<div class="line">}</div>
</div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">delegate</td><td>The object to receive notifications of various ad actions. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aa191fe99171a1e3dc47a7fba2148f3e2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">+ (void) setKeywordsForTargeting: </td>
          <td></td>
          <td class="paramname"></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets a dictionary of key/value pairs, which will be transmitted to <a class="el" href="interface_flurry.html" title="Provides all available methods for defining and reporting Analytics from use of your app...">Flurry</a> servers when an ad is requested. </p>
<dl class="section since"><dt>Since</dt><dd>4.0.0 </dd></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000018">Deprecated:</a></b></dt><dd>7.8.0 - please use the Object APIs</dd></dl>
<p>Keywords allow the developer to specify information on a user executing an ad action for the purposes of targeting. There is one keywords object that is transmitted to the <a class="el" href="interface_flurry.html" title="Provides all available methods for defining and reporting Analytics from use of your app...">Flurry</a> servers on each ad request. If corresponding keywords are matched on the ad server, a subset of targeted ads will be delivered. This allows partners to supply information they track internally, which is not available to <a class="el" href="interface_flurry.html" title="Provides all available methods for defining and reporting Analytics from use of your app...">Flurry</a>'s targeting system.</p>
<dl class="section note"><dt>Note</dt><dd>Calling this method with a nil or empty dictionary has no effect. Calling this method a second time with a valid dictionary will replace the previous entries. To clear previously set keywords, you must call #clearKeywords. </dd></dl>
<dl class="section see"><dt>See Also</dt><dd>#clearKeywords for details on removing keywords set through this method.</dd></dl>
<div class="fragment"><div class="line">   - (void)applicationDidFinishLaunching:(UIApplication *)application </div>
<div class="line">   {</div>
<div class="line">       <span class="comment">// Optional Flurry startup methods</span></div>
<div class="line">       [<a class="code" href="interface_flurry.html" title="Provides all available methods for defining and reporting Analytics from use of your app...">Flurry</a> startSession:<span class="stringliteral">@&quot;YOUR_API_KEY&quot;</span>];</div>
<div class="line"></div>
<div class="line">       <span class="comment">// Specify that user loves vacations</span></div>
<div class="line">       NSDictionary *keywords =</div>
<div class="line">           [NSDictionary dictionaryWithObjectsAndKeys:<span class="stringliteral">@&quot;vacation&quot;</span>, <span class="comment">// Parameter Value</span></div>
<div class="line">           <span class="stringliteral">@&quot;UserPreference&quot;</span>, <span class="comment">// Parameter Name</span></div>
<div class="line">           nil];</div>
<div class="line">           [<a class="code" href="interface_flurry_ads.html" title="Provides all available methods for displaying ads.">FlurryAds</a> setKeywords:keywords];</div>
<div class="line"></div>
<div class="line"><span class="comment">// ....</span></div>
<div class="line">}</div>
</div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">keywords</td><td>The information about the user to be used in targeting an ad. Note: do not transmit personally identifiable information in keywords. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a994fb5c9b5ab979bfc2137507b1db8ca"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">+ (void) setUserCookies: </td>
          <td></td>
          <td class="paramname"></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets a dictionary of key/value pairs, which will be transmitted to <a class="el" href="interface_flurry.html" title="Provides all available methods for defining and reporting Analytics from use of your app...">Flurry</a> servers when a user clicks on an ad. </p>
<dl class="section since"><dt>Since</dt><dd>4.0.0 </dd></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000016">Deprecated:</a></b></dt><dd>7.8.0 - please use the Object APIs</dd></dl>
<p>UserCookies allow the developer to specify information on a user executing an ad action. There is one UserCookie object, and on each ad click that UserCookie is transmitted to the <a class="el" href="interface_flurry.html" title="Provides all available methods for defining and reporting Analytics from use of your app...">Flurry</a> servers. The UserCookie key/value pairs will be transmitted back to the developer via the app callback if one is set. This is useful for rewarded inventory, to identify which of your users should be rewarded when a reward callback is sent.</p>
<dl class="section note"><dt>Note</dt><dd>Calling this method with a nil or empty dictionary has no effect. Calling this method a second time with a valid dictionary will replace the previous entries. To clear previously set userCookies, you must call #clearUserCookies. </dd></dl>
<dl class="section see"><dt>See Also</dt><dd>#clearUserCookies for details on removing user cookies set through this method.</dd></dl>
<div class="fragment"><div class="line">- (void)applicationDidFinishLaunching:(UIApplication *)application </div>
<div class="line">{</div>
<div class="line">    <span class="comment">// Optional Flurry startup methods</span></div>
<div class="line">    [<a class="code" href="interface_flurry.html" title="Provides all available methods for defining and reporting Analytics from use of your app...">Flurry</a> startSession:<span class="stringliteral">@&quot;YOUR_API_KEY&quot;</span>];</div>
<div class="line"></div>
<div class="line">    NSDictionary *cookies =</div>
<div class="line">        [NSDictionary dictionaryWithObjectsAndKeys:<span class="stringliteral">@&quot;xyz123&quot;</span>, <span class="comment">// Parameter Value</span></div>
<div class="line">        <span class="stringliteral">@&quot;UserCharacterId&quot;</span>, <span class="comment">// Parameter Name</span></div>
<div class="line">        nil];</div>
<div class="line">    [<a class="code" href="interface_flurry_ads.html" title="Provides all available methods for displaying ads.">FlurryAds</a> setUserCookies:cookies];</div>
<div class="line"></div>
<div class="line">    <span class="comment">// ....</span></div>
<div class="line">}</div>
</div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">userCookies</td><td>The information about the user executing ad actions. Note: do not transmit personally identifiable information in the user cookies. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>/Users/akshayb/Downloads/Flurry-iOS-7.8.2/FlurryAds/StaticAPI/<a class="el" href="_flurry_ads_8h_source.html">FlurryAds.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<hr class="footer"/><address class="footer"><small>Copyright (c) 2013 Flurry Inc. All rights reserved.
